// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   SendUSTradingVO.java

package com.boci.clientapp.trading.vo;

import com.boci.common.util.StringUtil;
import com.boci.common.vo.ResponseVO;

public class SendUSTradingVO extends ResponseVO
{

    public SendUSTradingVO(String pReqType, String pRtnCode)
    {
        super(pReqType, pRtnCode);
    }

    public String getReferenceNo()
    {
        return StringUtil.getReferenceNo(orderID);
    }

    public String getAccountID()
    {
        return accountID;
    }

    public void setAccountID(String accountID)
    {
        this.accountID = accountID;
    }

    public String getBuyOrSell()
    {
        return buyOrSell;
    }

    public void setBuyOrSell(String buyOrSell)
    {
        this.buyOrSell = buyOrSell;
    }

    public String getDate()
    {
        return date;
    }

    public void setDate(String date)
    {
        if(date == null || date.length() < 8)
        {
            this.date = "";
            return;
        } else
        {
            String strYear = date.substring(0, 4);
            String strMonth = date.substring(4, 6);
            String strDay = date.substring(6, 8);
            this.date = (new StringBuilder()).append(strDay).append("/").append(strMonth).append("/").append(strYear).toString();
            return;
        }
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getOrderID()
    {
        return orderID;
    }

    public void setOrderID(String orderID)
    {
        this.orderID = orderID;
    }

    public String getOrderType()
    {
        return orderType;
    }

    public void setOrderType(String orderType)
    {
        this.orderType = orderType;
    }

    public String getPrice()
    {
        return price;
    }

    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getQuantity()
    {
        return quantity;
    }

    public void setQuantity(String quantity)
    {
        this.quantity = quantity;
    }

    public String getName_CHS()
    {
        return name_chs;
    }

    public void setName_CHS(String name)
    {
        name_chs = name;
    }

    public String getSymbol()
    {
        return strSymbol;
    }

    public void setSymbol(String symbol)
    {
        strSymbol = symbol;
    }

    public String getName_CHI()
    {
        return name_chi;
    }

    public void setName_CHI(String name)
    {
        name_chi = name;
    }

    private String orderID;
    private String accountID;
    private String strSymbol;
    private String name;
    private String name_chi;
    private String name_chs;
    private String buyOrSell;
    private String quantity;
    private String price;
    private String orderType;
    private String date;
}
